package com.idanchuang.count.service;

import com.idanchuang.count.core.constant.UserCountEventTypeEnum;
import com.idanchuang.user.count.service.api.request.command.BaseUpdateCommand;

/**
 * @author Richard_yyf
 * @version 1.0 2021/5/27
 */
public interface AsyncCountCommandHandler {

    /**
     * 发布异步计数更新事件
     * @param userCountEventTypeEnum 异步事件类型
     * @param command 计数更新命令
     */
    void publishCountEvent(UserCountEventTypeEnum userCountEventTypeEnum,
                           BaseUpdateCommand command);
}
